package airport.server.service;

import airport.server.DAO.VolDAO;
import airport.shared.beans.VolBean;
import airport.shared.service.VolService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

import java.util.ArrayList;

/**
 * Created by Romain on 04/03/15.
 */
public class VolServiceImpl extends RemoteServiceServlet implements VolService {

	@Override
	public ArrayList<VolBean> selectAll() {
		VolDAO vDAO = new VolDAO();

		return vDAO.selectAll();
	}

	@Override
	public String save(VolBean v) {
		VolDAO vDAO = new VolDAO();

		return vDAO.save(v);
	}

	@Override
	public String update(VolBean v) {
		VolDAO vDAO = new VolDAO();

		return vDAO.update(v);
	}

	@Override
	public String delete(VolBean v) {
		VolDAO vDAO = new VolDAO();

		return vDAO.delete(v);
	}
}